package com.five.welcome.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.five.welcome.entity.Orders;
import com.five.welcome.entity.statistic.PayStatusCount;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ywt
 * @since 2024-07-12
 */
public interface OrdersService extends IService<Orders> {
    //通过学号查询订单
    Orders getOrderBySNumber(String sNumber);

    //查询全部订单
    List<Orders> selectAll();

    //通过订单号查询订单
    Orders getOrderByOrderId(String orderId);

    //更新订单
    void updateByOrderId(Orders orders);

    //分页条件查询订单
    Page<Orders> pageSelectAll(Integer pageNumber, Integer pageSize, String sNumber, String payStatus);

    //根据学号判断是否有订单
    Orders getIsOrderBySNumber(String sNumber);

    //支付状态各自人数
    List<PayStatusCount> PayStatusCount();
}
